/**    
 * 文件名：${module}ServerImpl.java
 * 版本信息:V1.00  
 * 日期：${createdTime} 
 * Copyright 深圳市佰仟金融服务有限公司版权所有
 */
package com.billionsfinance.crs.server.impl.${moduleType};

import java.util.List;

import com.billionsfinance.common.core.SpringContext;
import com.billionsfinance.crs.model.${moduleType}.${module};
import com.billionsfinance.crs.server.${moduleType}.I${module}Server;
import com.billionsfinance.crs.service.${moduleType}.I${module}Service;
import com.billionsfinance.crs.request.PageReuqest;
import com.billionsfinance.crs.model.PageResult;
import com.billionsfinance.crs.model.ResponseModel;

/**
* ${hessianDesc} hessian server实现类
* @FileName:${module}ServerImpl.java
* @author:${createdName}
* @date:${createdTime}
* @Version:V1.00
*/
public class ${module}ServerImpl implements I${module}Server{
	
	private I${module}Service ${lowModule}Service = null;
	{
		${lowModule}Service = (I${module}Service) SpringContext.getService("${lowModule}Service");
	}

	@Override
	public List<${module}> find${module}List(${module} ${lowModule}) throws Exception{
		return ${lowModule}Service.find${module}List(${lowModule});
	}
	
	@Override
	public PageResult<${module}> queryPageList(${module} ${lowModule}, PageReuqest pageV0) throws Exception{
		return ${lowModule}Service.select${module}Set(${lowModule},  pageV0);
	}
	
    @Override
    public int createOrUpdate${module}(${module} ${lowModule}) throws Exception{
        return ${lowModule}Service.createOrUpdate${module}(${lowModule});
    }
    
    @Override
    public ResponseModel createOrUpdate(${module} ${lowModule}) throws Exception{
        return ${lowModule}Service.createOrUpdate(${lowModule});
    }
    
    @Override
    public ${module} read${module}ById(Long id) throws Exception{
        return ${lowModule}Service.read${module}ById(id);
    }
    
    @Override
    public int delete${module}ById(Long id) throws Exception{
        return ${lowModule}Service.delete${module}ById(id);
    }
    
    @Override
    public int physicalDelete${module}ById(Long id) throws Exception{
    	return ${lowModule}Service.physicalDelete${module}ById(id);
    }	
    
}
